var bulkload = {
	title : "Bulk Load",
	module : "BULK",
	sections : {
		fileload : {
			title : "Bulk Upload", // //////////////
			alias : "Bulk Upload",
			components : [
					{
						type : "form",
						// id : "fileupload",
						// key : "uploadKey",
						// idPrefix : "leo",
						contents : [ {
							title : "File Loader",
							schema : {
								type : {
									back : "FILE.TYPE",									
									label : "File Type",
									type : "Select",
									name : "type",
									options : [ {
										val : "IAA",
										label : "Issue Asset Add"
									}, {
										val : "IAC",
										label : "Issue Asset Change"
									}, {
										val : "IAD",
										label : "Issue Asset Drop"
									}, {
										val : "QAC",
										label : "Quote Asset Change"
									}, {
										val : "QAR",
										label : "Quote Asset Rename"
									}, {
										val : "QAA",
										label : "Quote Asset Add"
									}, {
										val : "QAD",
										label : "Quote Asset Drop"
									}, {
										val : "ROA",
										label : "ROOT Add"
									}, {
										val : "ROC",
										label : "ROOT Change"
									}, {
										val : "ROD",
										label : "ROOT Drop"
									}, {
										val : "UCA",
										label : "URIC Add"
									}, {
										val : "UCC",
										label : "URIC Change"
									}, {
										val : "UCD",
										label : "URIC Drop"
									}, {
										val : "THA",
										label : "Exchange Trading Hours Add"
									}, {
										val : "THC",
										label : "Exchange Trading Hours Change"
									}, {
										val : "THD",
										label : "Exchange Trading Hours Drop"
									} ]
								// ["Issue Asset Add","Issue Asset
								// Change","Issue Asset Drop"]
								},
								priority : {
									back : "FILE.PRORITY",
									label : "Prority",
									type : "Select",
									name : "priority",
									options : [ {
										val : "",
										label : ""
									}, {
										val : "1",
										label : "HIGH"
									}, {
										val : "2",
										label : "MEDIUM"
									}, {
										val : "3",
										label : "LOW"
									} ]
								},
								file : {
									back : "btnUpload",
									label : "",
									type : "File",
									text : "Select Files...",
									name : "upload",
									multiple : true,
									className : "btn btn-small btn-primary fileinput-button",
									iconClass : "icon-plus icon-white"
								},
								progress : {
									label : "",
									type : "ProgressBar"
								}
							}
						} ]
					}, {
						type : "table",
						id : "BULKLOAD",						
						caption : "Files Loaded",
						history : false,
						readOnly : true,
						cols : [ {
							name : "File Type",
							field : "type",
							type : "String",
							editable : false
						}, {
							name : "Priority",
							field : "priority",
							type : "String",
							editable : false
						}, {
							name : "File Name",
							field : "filename",
							type : "String",
							editable : false
						}, {
							name : "Status",
							field : "status",
							type : "String",
							editable : false
						}, {
							name : "File Destination",
							field : "destination",
							type : "String",
							editable : false
						}, {
							name : "Size(Bytes)",
							field : "size",
							type : "String",
							editable : false
						} ]
					} ]
		},
		loadhistory : {
			title : "Files History", // //////////////
			alias : "Files History",
			components : [ {
				type : "form",
				contents : [ {
					title : "Locator",
					schema : {
						createdate : {
							back : "CREATE DATE",
							label : "Create Date",
							type : "jqueryui.Date",
							validators : [ {
								type : "dateFormat",
								format : "dd-mm-yyyy"
							} ]
						},
						modifydate : {
							back : "MODIFY DATE",
							label : "Modify Date",
							type : "jqueryui.Date",
							validators : [ {
								type : "dateFormat",
								format : "dd-mm-yyyy"
							} ]
						},
						createby : {
							back : "BULK.USERNAME",
							label : "User Name",
							type : "Text"
						},
						prioritySearch : {
							back : "BULK.PRORITY",
							idPrefix : "leo",
							label : "Prority",
							type : "Select",
							options : [ {
								val : "",
								label : ""
							}, {
								val : "1",
								label : "HIGH"
							}, {
								val : "2",
								label : "MEDIUM"
							}, {
								val : "3",
								label : "LOW"
							} ]
						},
						btnFHSearch : {
							back : "btnFHSearch",
							label : "",
							type : "Button",
							text : "Search",
							// buttonType : "submit",
							className : "btn btn-small btn-primary",
							iconClass : "icon-search icon-white"
						},
						btnFHReset : {
							back : "btnFHReset",
							label : "",
							type : "Button",
							text : "Clear Search",
							buttonType : "reset",
							className : "btn btn-small btn-primary",
							iconClass : "icon-ban-circle icon-white"
						}
					}
				} ]
			}, {
				type : "table",
				id : "BULKLOADHISTORY",
				// caption : "<div class='span6'><button id='btnFHSearch'
				// type='button' class='btn btn-small btn-primary'><i
				// class='icon-search
				// icon-white'></i><span>Search</span></button></div>",
				caption : "Files Previously Loaded By User",
				history : false,
				readOnly : true,
				cols : [ {
					name : "File ID",
					field : "nda_id",
					type : "String"
				}, {
					name : "File Name",
					field : "file_name",
					type : "String"
				}, {
					name : "File Type",
					field : "type",
					type : "String"
				}, {
					name : "Status",
					field : "status",
					type : "String"
				}, {
					name : "Priority",
					field : "priority",
					type : "String"
				}, {
					name : "Create Date",
					field : "create_date",
					type : "String"
				}, {
					name : "Modify Date",
					field : "modify_date",
					type : "String"
				}, {
					name : "Modify By",
					field : "modify_by",
					type : "String"
				} ]
			} ]
		}
	}
};

var form_columns = {};